<?php
class NewDailyTaskInfoVo extends SzAbstractMySqlVo
{

    private $userId;
    private $indexId;
    private $dailyTime;
    private $updateTime;

    /**
     * Initialize NewDailyTaskInfoVo.
     *
     * @param $userId
     * @param $indexId
     * @param $dailyTime
     * @param $updateTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return NewDailyTaskInfoVo
     */
    public function __construct($userId, $indexId, $dailyTime, $updateTime, $isInsert = false) {
        $this->userId = $userId;
        $this->indexId = $indexId;
        $this->dailyTime = $dailyTime;
        $this->updateTime = $updateTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'NewDailyTaskInfoVo';
        $this->ormName = 'NewDailyTaskInfo';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'indexId' => $this->getIndexId(),
            'dailyTime' => $this->getDailyTime(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'indexId' => $this->getIndexId(),
            'dailyTime' => $this->getDailyTime(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getIndexId(),
            $this->getDailyTime(),
            $this->getUpdateTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getIndexId()
    {
        return $this->indexId;
    }

    public function setIndexId($val)
    {
        $this->saveColumnStatus(1, $this->indexId);
        $this->indexId = $val;
    }

    public function getDailyTime()
    {
        return $this->dailyTime;
    }

    public function setDailyTime($val)
    {
        $this->saveColumnStatus(2, $this->dailyTime);
        $this->dailyTime = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(3, $this->updateTime);
        $this->updateTime = $val;
    }

}